Home > biomechZoo > Toolbox > Support Functions > makeunit.m

makeunit

PURPOSE ^

MAKEUNIT makes all vectors unit vectors

SYNOPSIS ^

function r = makeunit(unt)

DESCRIPTION ^

   MAKEUNIT  makes all vectors unit vectors
   unt ... N by 3 matrix of vectors.
           rows are the number of vectors
           columns are XYZ

 Created by JJ Loh ??

 updated November 2011 by Phil Dixon 
 - can normalize nx2 vectors

 updated May 2022 by Phil Dixon
 - rely on magnitude function

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 10-Mar-2024 22:39:06 by m2html © 2005